import { baseUrl } from "./baseUrl";

const base = {
    addProduct: baseUrl + "/shopping-mall-backend/sp/product/add", // 添加商品
    getAllProducts:baseUrl + "/shopping-mall-backend/sp/product/list", //获取所有商品
    deleteProduct: baseUrl + "/shopping-mall-backend/sp/product/delStatus", //删除商品
    addStock: baseUrl + "/shopping-mall-backend/sp/stock/add", //添加库存
    getStocks: baseUrl + "/shopping-mall-backend/sp/stock/list/", //获取库存列表或查询
    updateStockStatus : baseUrl + "/shopping-mall-backend/sp/stock/updateStatus", //修改库存确认状态
    deleteStock: baseUrl + "/shopping-mall-backend/sp/stock/delete", //删除库存记录
    setPrice: baseUrl + "/shopping-mall-backend/sp/price/add", //商品定价
    checkPriceDetail:baseUrl + "/shopping-mall-backend/sp/price/queryById", //查看定价单详情
    getProductsPricelist: baseUrl + "/shopping-mall-backend/sp/price/list", //获取商品定价列表&&商品上下架列表
    surePrice: baseUrl + "/shopping-mall-backend/sp/price/surePrice", //商品定价审核
    updatePublishStatus: baseUrl + "/shopping-mall-backend/sp/price/updatePublishStatus",  //商品上架 | 下架
    updateBatchPublishStatus: baseUrl + "/shopping-mall-backend/sp/price/updateBatchPublishStatus",  //批量商品上架 | 下架
    setSubTitle: baseUrl + "/shopping-mall-backend/sp/price/setSubTitle",//设置副标题
    getOrders:baseUrl + "/shopping-mall-backend/sp/order/listProductOrders", // 获取所有订单
    getOrderDeatil:baseUrl + "/shopping-mall-backend/sp/order/viewOrderDetail", // 获取订单详情
    getConsultReply:baseUrl + "/shopping-mall-backend/sp/product/consult/getConsultReply", // 获取咨询回复
    addConsultReply:baseUrl + "/shopping-mall-backend/sp/product/consult/addReply", // 添加咨询回复
    getAllReply:baseUrl + "/shopping-mall-backend/sp/product/consult/getReply",  // 获得当前咨询所有回复
    getCategoryList:baseUrl + "/shopping-mall-backend/sp/category/list", // 获取商品分类列表
    returnList:baseUrl + "/shopping-mall-backend/sp/order/returnList", // 退换货列表
    getProductDetils: baseUrl + "/shopping-mall-backend/sp/product/getProductDetails", //获取商品详情
    getCategoryListTree: baseUrl + "/shopping-mall-backend/sp/category/listClass", //获取商品分类结构树
    getBrand: baseUrl + "/shopping-mall-backend/sp/homebrand/list", //获取品牌
    deliverGoods:baseUrl + "/shopping-mall-backend/sp/order/deliveryCommodity", // 发货
    getplaceList:baseUrl + "/shopping-mall-backend/sp/address/getAddressList", // 获取收货地址列表
    getCategoryData: baseUrl + "/shopping-mall-backend/sp/category/queryById", //获取该分类的数据
    changedetail:baseUrl +"/shopping-mall-backend/sp/address/editAddress",//修改发货信息
    changetoshippedAddress:baseUrl+"/shopping-mall-backend/sp/order/updateReceiverAddress",//修改待发货地址
    getreturnchangeDetail:baseUrl + "/shopping-mall-backend/sp/order/viewAfterServiceDetail",//退换货详情
    updateStock: baseUrl + "/shopping-mall-backend/sp/stock/update", //修改库存信息
    getSkuList: baseUrl + "/shopping-mall-backend/sp/skustock/querySkuList", //查看商品的所有sku列表
    confirmReceipt: baseUrl + "/shopping-mall-backend/sp/order/confirmReceipt", //确认收货
    approveById: baseUrl + "/shopping-mall-backend/sp/order/sureAfterService", //审核通过
    cancelById: baseUrl + "/shopping-mall-backend/sp/order/cancelAfterService", // 取消退换货订单
    getQRcode: baseUrl + "/shopping-mall-backend/sp/payment/makePay", // 支付
    getCommodityunitList: baseUrl + "/shopping-mall-backend/sp/commodityunit/list", // 商品单位列表
    addCommodityunit: baseUrl + "/shopping-mall-backend/sp/commodityunit/add", // 添加商品单位
    uploadImg:baseUrl + "/shopping-mall-backend/images/add" ,//上传图片
    applybrand:baseUrl + "/shopping-mall-backend/sp/homebrand/add", //申请品牌
    queryUserWithTenantById:baseUrl + "/shopping-mall-backend/product/jhSaasProductInfo/platform/queryUserWithTenantById", //查看用户信息
    changecompanies:baseUrl + "/saas/sys/enterprise/changeTenant", //切换企业
}

export default base